package org.jeecg.modules.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 系统用户协议
 * @Author: jeecg-boot
 * @Date:   2020-06-26
 * @Version: V1.0
 */
@Data
@TableName("sys_user_protocol")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="sys_user_protocol对象", description="系统用户协议")
public class SysUserProtocol {

	/**主键*/
	@TableId(type = IdType.UUID)
    @ApiModelProperty(value = "主键")
	private String id;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
	private String remark;
	/**协议类型 1、注册协议  2、直播协议*/
	@Excel(name = "协议类型 1、注册协议  2、直播协议", width = 15)
    @ApiModelProperty(value = "协议类型 1、注册协议  2、直播协议")
	@Dict(dicCode = "sys_user_protocol_protocol_type")
	private Integer protocolType;
	/**协议内容*/
	@Excel(name = "协议内容", width = 15)
    @ApiModelProperty(value = "协议内容")
	private Object protocolContent;
}
